package de.g18.treggr.db;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;


public class ConnectionHandler
{
  private ConnectionHandler() throws SQLException
  {
  }
  
  public static Connection getConnection() throws SQLException{
	  DriverManager.registerDriver(new com.mysql.jdbc.Driver());
	  return DriverManager.getConnection("jdbc:mysql://"+DBData.getIp()+"/"+DBData.getDbName(), DBData.getUser(), DBData.getPassword());
  }
}